package com.sunedai.tiger.dao.system.entity;

import lombok.Getter;
import lombok.Setter;
import org.hibernate.annotations.DynamicUpdate;

import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.OneToOne;

/**
 * 菜单权限表
 * @author zhaolipeng
 */
@Getter
@Setter
@Entity
@DynamicUpdate
public class MenuPrivilege extends BasePrivilege {

  @OneToOne(fetch = FetchType.LAZY)
  private Menu menu;

}
